const mongoose = require('mongoose');
//  120.78.9.102 服务端api 127.0.0.1
// mongoose.connect('mongodb://120.78.9.102:27017/muyun_article')
mongoose.connect('mongodb://127.0.0.1:27017/m_article')
   .then(res => {
      console.log('数据库连接成功 当前为本地服务----');
   }).catch(err => {
      console.log('数据库链接失败 -_-!', err);
   })